clutter_actor_allocate (left_icon, &icon_box, flags);
/* reduce the size for the entry */
- child_box.x1 += icon_w + priv->spacing;
+ child_box.x1 = MIN (child_box.x2, child_box.x1 + icon_w + priv->spacing);
}
if (right_icon)
clutter_actor_allocate (right_icon, &icon_box, flags);
/* reduce the size for the entry */
- child_box.x2 -= icon_w + priv->spacing;
+ child_box.x2 = MAX (child_box.x1, child_box.x2 - icon_w - priv->spacing);
}
clutter_actor_get_preferred_height (priv->entry, child_box.x2 - child_box.x1,